<!DOCTYPE html>
<html lang="en">
<head>
	<title>赚学币</title>
	<include file="Public:header" />
 
</head>
<body>
<header>
	<a href="javascript:void(0)" class="lft back"><i class="icon icon-back"></i><i>返回</i></a>
	<h5>问题详情</h5>
</header>

  <section class="zhuan">
  <dl class="item">
			<dt><a href="<{:U('Index/timeline',array('user_id'=>$data['userInfo']['user_id']))}>">
				<img src="<{$data.userInfo.headimg}>" alt=""></a></dt>
			<dd>
				<p>
					<span class="gray"><{$data.userInfo.nickname}></span>
					<{$data['title']}>
				</p>
				<p class="mt5 gray alright">回答：<{$data.comment_count}>&nbsp;|&nbsp;<{:time_tran($data['dateline'])}></p>
			</dd>
		</dl>
		
  <div class="after_div comment_data">
	  <volist name="comment_data" id="vo">
			<dl class="item">
				<!--头部-->
				<dt><a href="<{:U('Index/timeline',array('user_id'=>$vo['userInfo']['user_id']))}>">
					<img src="<{$vo.userInfo.headimg}>" alt=""></a>
				</dt>
				<dd>
						<p><{$vo.userInfo.nickname}><{$user_id}></p>
						<p >
						<span class="gray"><{:time_tran($vo['dateline'])}></span>
						<!--采纳操作-->
					
						<if condition="$data['is_best'] neq 1">
							<!--题主可以回复采纳-->
								<if condition="$data['user_id'] eq $user_info['user_id']">
									<a href="<{:U('Ask/ask_comment',array('comment_id'=>$vo['comment_id']))}>">回答</a>
									<a href="#this" onClick="accept(this)" id="<{$vo.comment_id}>">采纳</a>
								</if>
						</if>
						
						<if condition="$data['is_best'] eq 1 and $vo['is_best'] eq 1">
							<a>已采纳</a>
						</if>
						
						<!--采纳操作-->
						</p>
				
				</dd>
				<!--头部-->
					<!--回复信息-->
				<div class="item_content">
					<if condition="$vo['comment']">
						<p class="light">
							<{:cutstr($vo['comment']['content'],40)}>&nbsp;&nbsp;<a href="<{:U('Index/timeline',array('user_id'=>$vo['comment']['userInfo']['user_id']))}>" ><{$vo.comment.userInfo.nickname}></a>
						</p>
					</if>	
						<p><{$vo['content']}></p>
				</div>
				<!--回复信息-->	
			</dl>
	 </volist>
	</div> 
	<include file="Public:pager" />
<if condition="$data['is_best'] neq 1">
	<a href="<{:U('Ask/ask_comment',array('topic_id'=>$data['id']))}>">
	<span class="btn-blk short inner-shad" style="width:95%; height:40px; line-height:40px; margin-top:20px">回答</span>
	</a>
</if>
</section>



 <include file="Public:footer" />
</body>
</html>
